package com.kgc.scd.bean;

import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * vip_order
 * @author 
 */
@Data
@Builder
public class VipOrder implements Serializable {
    private String vipOrderid;

    private String vipUserid;

    private Date vipDatetime;

    private static final long serialVersionUID = 1L;

    public String getVipOrderid() {
        return vipOrderid;
    }

    public void setVipOrderid(String vipOrderid) {
        this.vipOrderid = vipOrderid;
    }

    public String getVipUserid() {
        return vipUserid;
    }

    public void setVipUserid(String vipUserid) {
        this.vipUserid = vipUserid;
    }

    public Date getVipDatetime() {
        return vipDatetime;
    }

    public void setVipDatetime(Date vipDatetime) {
        this.vipDatetime = vipDatetime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        VipOrder other = (VipOrder) that;
        return (this.getVipOrderid() == null ? other.getVipOrderid() == null : this.getVipOrderid().equals(other.getVipOrderid()))
            && (this.getVipUserid() == null ? other.getVipUserid() == null : this.getVipUserid().equals(other.getVipUserid()))
            && (this.getVipDatetime() == null ? other.getVipDatetime() == null : this.getVipDatetime().equals(other.getVipDatetime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getVipOrderid() == null) ? 0 : getVipOrderid().hashCode());
        result = prime * result + ((getVipUserid() == null) ? 0 : getVipUserid().hashCode());
        result = prime * result + ((getVipDatetime() == null) ? 0 : getVipDatetime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", vipOrderid=").append(vipOrderid);
        sb.append(", vipUserid=").append(vipUserid);
        sb.append(", vipDatetime=").append(vipDatetime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}